package com.auto.finance.auth.collect;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author tianye
 */
@ConfigurationProperties(prefix = CollectProperties.COLLECT_PROPERTIES_PREFIX)
@Data
public class CollectProperties {

    public static final String COLLECT_PROPERTIES_PREFIX = "auth.collect";
    public static final String DEFAULT_BASE_PACKAGE = "com.used.car";

    /**
     * 是否启用
     */
    private boolean enable = true;

    /**
     * 项目基本包路径
     */
    private String basePackage = DEFAULT_BASE_PACKAGE;

    /**
     * 向权限中心汇报失败_重试间隔
     */
    private long retryTime = 3000;

    /**
     * 汇报地址
     */
    private String reportLocation = "http://used-car-auth/sys/auth/report";

}
